package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.ProductionReport;
import com.qidianit.mes.pro.vo.FeedbackProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/26 - 13:50
 */
@Mapper
public interface FeedbackMapper {

    ArrayList<FeedbackProduct> queryProductionReportByMAnyTags(@Param("reportType") Integer reportType,
                                                               @Param("workflowName") String  workflowName,
                                                               @Param("productionOrderCode") String productionOrderCode,
                                                               @Param("productCode")String productCode,
                                                               @Param("productName") String productName,
                                                               @Param("reporterName") String reportName,
                                                               @Param("approverName") String approverName,
                                                               @Param("status")Integer status);

    int addProductionReport(ProductionReport productionReport);

    FeedbackProduct getProductionReportById(Long id);

    int updateProductionReport(ProductionReport productionReport);

    int deleteProductionReportById(@Param("id") Long id);


}
